#ifndef _RGB2JPG_H
#define _RGB2JPG_H

void jpeg_init(u32 image_width, u32 image_height,int quality);

void rgb_to_jpeg_file(u8 *rgbData, u32 width, u32 height, int quality);

int rgb_to_jpeg_buff(u8 **dest, u8 *rgbData, u32 width, u32 height, int quality);

void jpeg_uninit();  

#endif
